<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>adspygoogle.common.SoapBuffer.SoapBuffer</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="adspygoogle-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/google-api-dfp-python">DFP API Python Client Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="adspygoogle-module.html">Package&nbsp;adspygoogle</a> ::
        <a href="adspygoogle.common-module.html">Package&nbsp;common</a> ::
        <a href="adspygoogle.common.SoapBuffer-module.html">Module&nbsp;SoapBuffer</a> ::
        Class&nbsp;SoapBuffer
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class SoapBuffer</h1><p class="nomargin-top"><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer">source&nbsp;code</a></span></p>
<pre class="base-tree">
   object --+    
            |    
<a href="adspygoogle.common.Buffer.Buffer-class.html">Buffer.Buffer</a> --+
                |
               <strong class="uidshort">SoapBuffer</strong>
</pre>

<dl><dt>Known Subclasses:</dt>
<dd>
      <ul class="subclass-list">
<li><a href="adspygoogle.dfp.DfpSoapBuffer.DfpSoapBuffer-class.html">dfp.DfpSoapBuffer.DfpSoapBuffer</a></li>  </ul>
</dd></dl>

<hr />
<p>Implements a SoapBuffer.</p>
  <p>Catches and parses outgoing and incoming SOAP XML messages.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">xml_parser</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">pretty_xml</span>=<span class="summary-sig-default">False</span>)</span><br />
      Inits SoapBuffer.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#write" class="summary-sig-name">write</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">str_in</span>)</span><br />
      Append given string to a buffer.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.write">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#flush" class="summary-sig-name">flush</a>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.flush">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetBufferAsStr" class="summary-sig-name">GetBufferAsStr</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return buffer as string.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetBufferAsStr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#IsHandshakeComplete" class="summary-sig-name">IsHandshakeComplete</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return state of the handshake.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.IsHandshakeComplete">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#__GetBufferAsDict" class="summary-sig-name" onclick="show_private();">__GetBufferAsDict</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Parse HTTP headers and SOAP data.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__GetBufferAsDict">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#__GetDumpValue" class="summary-sig-name" onclick="show_private();">__GetDumpValue</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">dump_type</span>)</span><br />
      Return dump value given its type.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__GetDumpValue">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetHeadersOut" class="summary-sig-name">GetHeadersOut</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return outgoing headers dump.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetHeadersOut">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetSoapOut" class="summary-sig-name">GetSoapOut</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return SOAP out dump.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetSoapOut">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetHeadersIn" class="summary-sig-name">GetHeadersIn</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return incoming headers dump.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetHeadersIn">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetSoapIn" class="summary-sig-name">GetSoapIn</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return incoming SOAP dump.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetSoapIn">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetRawSoapIn" class="summary-sig-name">GetRawSoapIn</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return raw incoming SOAP dump with out banners and not prettified.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetRawSoapIn">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#_GetXmlOut" class="summary-sig-name" onclick="show_private();">_GetXmlOut</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Remove banners from outgoing SOAP XML and contstruct XML object.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer._GetXmlOut">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#_GetXmlIn" class="summary-sig-name" onclick="show_private();">_GetXmlIn</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Remove banners from incoming SOAP XML and construct XML object.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer._GetXmlIn">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#__RemoveElemAttr" class="summary-sig-name" onclick="show_private();">__RemoveElemAttr</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">elem</span>)</span><br />
      Remove element's attribute, if any.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__RemoveElemAttr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#__GetXmlNameByName" class="summary-sig-name" onclick="show_private();">__GetXmlNameByName</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">xml_obj</span>,
        <span class="summary-sig-arg">name</span>)</span><br />
      Get XML object name from a given tag name.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__GetXmlNameByName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#_GetXmlValueByName" class="summary-sig-name" onclick="show_private();">_GetXmlValueByName</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">xml_obj</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">get_all</span>=<span class="summary-sig-default">False</span>)</span><br />
      Get XML object value from a given tag name.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer._GetXmlValueByName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#IsSoap" class="summary-sig-name">IsSoap</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Whether buffer contains SOAP message(s) or not.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.IsSoap">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetServiceName" class="summary-sig-name">GetServiceName</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Get name of the API service that was called.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetServiceName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetCallName" class="summary-sig-name">GetCallName</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Get name of the API method that was called.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetCallName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetFaultAsDict" class="summary-sig-name">GetFaultAsDict</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">obj</span>=<span class="summary-sig-default">None</span>)</span><br />
      Recursively parse SOAP fault and load all elements into a dictionary.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetFaultAsDict">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#GetFaultAsStr" class="summary-sig-name">GetFaultAsStr</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">dct</span>=<span class="summary-sig-default"><code class="variable-group">{</code><code class="variable-group">}</code></span>)</span><br />
      Format SOAP fault to make it human readable.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetFaultAsStr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#InjectXml" class="summary-sig-name">InjectXml</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">xml_in</span>)</span><br />
      Hook into the SoapBuffer to test local SOAP XML.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.InjectXml">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#__Indent" class="summary-sig-name" onclick="show_private();">__Indent</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">elem</span>,
        <span class="summary-sig-arg">level</span>=<span class="summary-sig-default">0</span>)</span><br />
      Add whitespace to the tree, to get its pretty-printed version.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__Indent">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="adspygoogle.common.SoapBuffer.SoapBuffer-class.html#__PrettyPrintXml" class="summary-sig-name" onclick="show_private();">__PrettyPrintXml</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">doc</span>,
        <span class="summary-sig-arg">level</span>=<span class="summary-sig-default">0</span>)</span><br />
      Return a pretty-printed version of the XML document.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__PrettyPrintXml">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__str__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">xml_parser</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">pretty_xml</span>=<span class="sig-default">False</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Inits SoapBuffer.

Args:
  xml_parser: str XML parser to use.
  pretty_xml: bool Indicator for whether to prettify XML.

</pre>
  <dl class="fields">
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="write"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">write</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">str_in</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.write">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Append given string to a buffer.

Args:
  str_in: str String to append to a buffer.

</pre>
  <dl class="fields">
    <dt>Overrides:
        <a href="adspygoogle.common.Buffer.Buffer-class.html#write">Buffer.Buffer.write</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="flush"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">flush</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.flush">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Overrides:
        <a href="adspygoogle.common.Buffer.Buffer-class.html#flush">Buffer.Buffer.flush</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="GetBufferAsStr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetBufferAsStr</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetBufferAsStr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return buffer as string.

Returns:
  str Content of buffer.

</pre>
  <dl class="fields">
    <dt>Overrides:
        <a href="adspygoogle.common.Buffer.Buffer-class.html#GetBufferAsStr">Buffer.Buffer.GetBufferAsStr</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="IsHandshakeComplete"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">IsHandshakeComplete</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.IsHandshakeComplete">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return state of the handshake.

A successful handshake occurs when a SOAP request is sent and a SOAP
response is recieved.

Returns:
  bool True if successful handshake, False otherwise.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__GetBufferAsDict"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__GetBufferAsDict</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__GetBufferAsDict">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Parse HTTP headers and SOAP data.

Returns:
  dict Request's HTTP headers and SOAP data.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__GetDumpValue"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__GetDumpValue</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">dump_type</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__GetDumpValue">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return dump value given its type.

Args:
  dump_type: str Type of the dump.

Returns:
  str Value of the dump.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetHeadersOut"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetHeadersOut</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetHeadersOut">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return outgoing headers dump.

Returns:
  str Outgoing headers dump.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetSoapOut"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetSoapOut</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetSoapOut">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return SOAP out dump.

Returns:
  str Outgoing SOAP dump.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetHeadersIn"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetHeadersIn</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetHeadersIn">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return incoming headers dump.

Returns:
  str Incoming headers dump.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetSoapIn"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetSoapIn</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetSoapIn">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return incoming SOAP dump.

Returns:
  str Incoming SOAP dump.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetRawSoapIn"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetRawSoapIn</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetRawSoapIn">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return raw incoming SOAP dump with out banners and not prettified.

Returns:
  str Raw incoming SOAP dump.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_GetXmlOut"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_GetXmlOut</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer._GetXmlOut">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Remove banners from outgoing SOAP XML and contstruct XML object.

Returns:
  Document/Element object generated from string, representing XML message.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_GetXmlIn"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_GetXmlIn</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer._GetXmlIn">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Remove banners from incoming SOAP XML and construct XML object.

Returns:
  Document/Element object generated from string, representing XML message.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__RemoveElemAttr"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__RemoveElemAttr</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">elem</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__RemoveElemAttr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Remove element's attribute, if any.

Args:
  elem: str XML element with or without an attribute.

Returns:
  str XML element without attribute.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__GetXmlNameByName"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__GetXmlNameByName</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">xml_obj</span>,
        <span class="sig-arg">name</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__GetXmlNameByName">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Get XML object name from a given tag name.

Args:
  xml_obj: Document/Element object.
  name: str Tag name to look up.

Returns:
  str XML object name, or None if tag name is not found in the XML object.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_GetXmlValueByName"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_GetXmlValueByName</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">xml_obj</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">get_all</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer._GetXmlValueByName">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Get XML object value from a given tag name.

Args:
  xml_obj: Document/Element object.
  name: str Tag name whose value to look up.
  get_all: bool Whether to return all values that were found or just one.

Returns:
  str XML object value, list if more than one value is found and if
  explicitly requested, or None if name is not found in the XML object.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="IsSoap"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">IsSoap</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.IsSoap">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Whether buffer contains SOAP message(s) or not.

Returns:
  bool True if message is a SOAP, False otherwise.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetServiceName"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetServiceName</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetServiceName">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Get name of the API service that was called.

Note: the way service is determined depends on the particular order of
elements in the caller stack. For example:

XxxService.Get() -&gt;
  WebService.__ManageSoap() -&gt;
    SoapBuffer.GetServiceName()

Returns:
  str Name of the API service that was called.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetCallName"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetCallName</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetCallName">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Get name of the API method that was called.

Returns:
  str Name of the API method that was called.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetFaultAsDict"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetFaultAsDict</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">obj</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetFaultAsDict">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Recursively parse SOAP fault and load all elements into a dictionary.

Args:
  [optional]
  obj: instance SOAP fault object holder.

Returns:
  dict Dictionary object with all fault elements.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="GetFaultAsStr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetFaultAsStr</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">dct</span>=<span class="sig-default"><code class="variable-group">{</code><code class="variable-group">}</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.GetFaultAsStr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Format SOAP fault to make it human readable.

Returns:
  str String with all fault elements.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="InjectXml"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">InjectXml</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">xml_in</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.InjectXml">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Hook into the SoapBuffer to test local SOAP XML.

Prepares dump dict with a given input.

Args:
  xml_in: str SOAP XML request, response, or both.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__Indent"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__Indent</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">elem</span>,
        <span class="sig-arg">level</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__Indent">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add whitespace to the tree, to get its pretty-printed version.</p>
  <p>See, http://effbot.org/zone/element-lib.htm#prettyprint.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__PrettyPrintXml"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__PrettyPrintXml</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">doc</span>,
        <span class="sig-arg">level</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="adspygoogle.common.SoapBuffer-pysrc.html#SoapBuffer.__PrettyPrintXml">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
Return a pretty-printed version of the XML document.

Args:
  doc: str XML document.
  level: int Level of prettiness, defaults to 0. If -1, remove prettiness.

Returns:
  str Pretty-printed version of the XML document.

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="adspygoogle-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/google-api-dfp-python">DFP API Python Client Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
